<?php
	header ('Content-type: text/html; charset=ISO-8859-1'); 
	 
	// connect to the database server and select the appropriate database for use
	include('config/conexao.php');
// 	mysql_query("SET NAMES 'utf8'"); 
	// query the database table for zip codes that match 'term'
	//$rs = mysql_query('SELECT  `tag` FROM  `setor` ORDER BY RAND() limit 3');
	$rs = mysql_query('SELECT tag FROM setor WHERE tag <> "" GROUP BY tag ORDER BY RAND() LIMIT 3');

	// loop through each zipcode returned and format the response for jQuery
	
	$data = array();
	if ( $rs && mysql_num_rows($rs) )
	{
		while( $row = mysql_fetch_array($rs) )
		{
			//$string = '<label style="font-size:10px;color:blue;">'.strtolower($row['tag']).'</label>';
			$string = '<b title="Digite esta palavra no campo acima para buscar o ramal desejado." style="font-size:9px;color:blue;">'.$row['tag'].'</b><br>';
			echo $string;
	
		
		}
	}
	
	

?>
